package com.javacoding.huawei;

import java.util.Scanner;

/**
 * @author zuife
 * @description
 * @since 2024-04-19 20:10:11
 */
public class HJ1字符串最后一个单词的长度 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            String str = scanner.nextLine();
            String[] strs = str.split(" ");
            System.out.println(strs[strs.length - 1].length());
        }
    }
}
